﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Wangzeran.CodeMaker.Core.Tag
{
    /// <summary>
    /// 标签
    /// </summary>
    public interface ITag
    {
        /// <summary>
        /// 标签名称（全部小写）
        /// </summary>
        string TagName
        {
            get;
        }

        /// <summary>
        /// 标签的属性集合
        /// </summary>
        IDictionary<string, string> Properties
        {
            get;
            set;
        }

        /// <summary>
        /// 处理标签
        /// </summary>
        /// <param name="tagStr">标签文本</param>
        /// <param name="value">标签值</param>
        /// <returns>处理结果文本</returns>
        string Process(string tagStr, object value);

    }
}
